<?php

namespace app\exception;

use Psr\Container\NotFoundExceptionInterface;
use Throwable;

class FunctionNotFoundException extends \RuntimeException implements NotFoundExceptionInterface
{
    public function __construct(string $message = "", protected string $func = '', ?Throwable $previous = null)
    {
        parent::__construct($message, 0, $previous);
    }

    public function getFunc()
    {
        return $this->func;
    }
}
